@import '@/app/styles/variables';

.button {
  text-decoration: none;
  text-align: start;
  background: none;
  outline: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.1s;
  user-select: none;
  color: black;
}

.logout {
  color: #ec3333;
  padding: 0;
  height: min-content;
  margin: 0;

  &:hover {
    color: #bd2929;
  }
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2454ff;
  color: #fff;
  border: none;
  border-radius: 100px;
  height: 64px;
  padding: 0 40px;

  &:hover,
  &:active {
    background-color: #1c48e2;
  }
}

.secondary {
  border-radius: 100px;
  transition: background-color 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  border: 2px solid #e1e1e1;
  color: #000;
  background: none;
  font-size: 20px;
  font-style: normal;
  line-height: 30px;

  &:hover,
  &:active {
    background-color: #f3f3f3;
    color: #000;
  }
}

.danger {
  font-size: 20px;
  font-style: normal;
  line-height: 30px;
  width: 360px;
  height: 80px;
  user-select: none;
  border: 0;
  display: flex;
  font-weight: 500;
  cursor: pointer;
  padding: 26px 48px 28px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  transition: background-color 0.1s ease-out;
  background: var(--Simple-Red-Day, #ec3333);
  color: white;

  &:hover {
    background: var(--Simple-Red-Evening, #bd2929);
  }
}

.green {
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  text-align: center;
  border-radius: 100px;
  width: 360px;
  height: 80px;
  background-color: #B2EC4C;
  user-select: none;

  &:hover {
    background: #9CD92F;

  }
}

.primary {
  font-size: 20px;
  font-style: normal;
  line-height: 30px;
  width: 360px;
  height: 80px;
  user-select: none;
  border: 0;
  display: flex;
  font-weight: 500;
  cursor: pointer;
  padding: 26px 48px 28px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  transition: background-color 0.1s ease-out;

  background: #ffd662;
  color: #000;

  &:hover {
    background: #e9b82f;
  }

  &:disabled {
    cursor: default;
    color: var(--Simple-Gray-Evening, #ababab);
    background: var(--Simple-Yellow-Morning, #fbf3de);

    &:hover {
      background: var(--Simple-Yellow-Morning, #fbf3de);
      color: var(--Simple-Gray-Evening, #ababab);
    }
  }
}

.link {
  user-select: unset;
  background-color: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  font-style: normal;
  font-weight: 400;
  width: fit-content;
  line-height: 22px;
  height: fit-content;
  color: var(--simple-blue-day, #337cec);

  &:visited {
    color: var(--simple-blue-day, #337cec);
  }

  border-radius: 0;

  &:hover {
    color: #1b56b1;
  }
}

.blue {
  box-sizing: border-box;
  user-select: none;
  cursor: pointer;
  display: flex;
  padding: 15px 56px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  background: var(--simple-blue-day, #337cec);

  color: var(--simple-morning, #fff);
  text-align: center;

  &:hover {
    background: var(--simple-blue-evening, #1b56b1);
  }

  &:hover {
    color: var(--simple-morning, #fff);
    background: var(--simple-blue-evening, #1b56b1);
  }

  &:disabled {
    background: var(--simple-blue-morning, #dee9fb);
    cursor: default;
  }

  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
}

.icon {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 12px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.04), 0 2px 8px 0 rgba(0, 0, 0, 0.08);

  &:hover {
    background-color: #f3f3f3;
  }

  &:disabled {
    cursor: default;
    opacity: 0.8;
  }

  @media screen and (max-width: 1024px) {
    box-shadow: none;
    padding: 0;
    width: 24px;
    height: 24px;

    svg {
      cursor: pointer;
    }

    &:hover {
      background: #fff;
    }
  }
}

.gray {
  display: flex;
  width: 100%;
  padding: 26px 48px 28px 48px;
  justify-content: center;
  align-items: center;
  gap: 8px;

  border-radius: 100px;
  background: var(--Simple-Gray-Morning, #f3f3f3);

  color: var(--Simple-Night, #000);

  transition: all 0.1s ease-in;

  &:hover {
    background: var(--Simple-Gray-Day, #e1e1e1);
  }

  @media screen and (max-width: 768px) {
    &:hover {
      background: var(--Simple-Gray-Morning, #f3f3f3);
    }
  }
}

.link_danger {
  color: var(--Simple-Red-Day, #ec3333);
  text-align: center;
  font-size: 16px;
  margin: 0 auto;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  padding: 0px;
  width: fit-content;
  height: fit-content;
  /* 137.5% */
  cursor: pointer;

  &:hover {
    color: #911c1c;
  }
}

.login {
  border-radius: 100px;
  transition: background-color 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f3f3f3;
  color: #000;
  border: none;
  height: initial;
  min-width: initial;
  padding: 15px 24px 15px 22px;
  gap: 8px;

  @media (min-width: 768px) {
    &:hover {
      background-color: #337cec;
      color: #fff;
    }
  }
}

.link_gray {
  cursor: pointer;
  color: #ababab;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;

  svg {
    transform: scale(1) rotate(90turn);
  }

  &:hover {
    color: #7d7d7d;

    svg path {
      stroke: #7d7d7d;
    }
  }

  &:active {
    color: #7d7d7d;

    svg path {
      stroke: #7d7d7d;
    }
  }
}

.no_hover {
  pointer-events: none !important;
}

@include media(xs) {
  .login {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .primary,
  .danger,
  .green {
    font-size: 16px;
    font-style: normal;
    line-height: 22px;
    width: 100%;
    width: 343px;
    height: 64px;
  }

  .link_danger,
  .link {
    font-size: 14px;
    line-height: 16px;
  }

  .blue {
    &:active {
      background: var(--simple-blue-evening, #1b56b1);
    }
  }

  .logout,
  .link {
    font-size: 14px;
  }

  .back_button {
    font-size: 14px;
    line-height: 20px;
    justify-content: flex-start;
    align-items: center;
    transform: translateX(-9%);

    span {
      transform: translateX(-10%);
      margin-top: 0px;
    }

    svg {
      transform: scale(0.75) rotate(90turn);
    }
  }
}

@include media(xs) {

  .primary,
  .danger {
    min-width: 231px;
  }
}